
package com.be.beadmin.service.repository;

import com.be.beadmin.service.entity.PrintDesignFile;
import com.be.beadmin.service.entity.PrintDesignItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2023-05-10
**/
public interface PrintDesignItemRepository extends JpaRepository<PrintDesignItem, String>, JpaSpecificationExecutor<PrintDesignItem> {

    PrintDesignItem findPrintDesignItemByIdAndDelete(String id, Integer delete);

    PrintDesignItem findPrintDesignItemById(String id);
    
    List<PrintDesignItem> findPrintDesignItemsByPrintDesignFile(PrintDesignFile printDesignFile);

}